import com.zjz.pojo.User;
import com.zjz.pojo.UserT;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

@SuppressWarnings("ALl")
public class Mytest {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");

//        User user = (User)context.getBean("user");
        UserT user = (UserT)context.getBean("userT3");

        System.out.println(user.toString());

//        user.show();

//        User userT2 = (User)context.getBean("userT2");

//        System.out.println(userT2);


    }



}
